Skip to content

Conversation

@ochafik
Copy link
Contributor

@ochafik ochafik commented Dec 6, 2024

Fixes #9

@ochafik ochafik changed the title Fix CRLF handling on Windows Fix CRLF handling on Windows & lstrip_blocks + trim_blocks behaviour (testing against jinja2) Dec 26, 2024
@ochafik ochafik marked this pull request as ready for review December 26, 2024 21:28
@ochafik ochafik merged commit 202aa2f into main Dec 26, 2024
7 checks passed
@ochafik ochafik deleted the crlf branch December 26, 2024 21:34
ochafik referenced this pull request in ochafik/minja Nov 2, 2025
Fix CRLF handling on Windows & lstrip_blocks + trim_blocks behaviour (testing against jinja2)
CISC pushed a commit to aldehir/minja that referenced this pull request Dec 20, 2025
the chat template in unsloth/Qwen3-Next-80B-A3B-Thinking-GGUF uses `|
first`

```
{%- set reasoning_content = ((content.split('</think>')|first).rstrip('\n').split('<think>')|last).lstrip('\n') %} {%- set content = (content.split('</think>')|last).lstrip('\n') %}
```

Co-authored-by: zhaobin <zhaobin@icbench.com>
Co-authored-by: Olivier Chafik <olivier.chafik@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows / CRLF handling broken

1 participant